﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using SAP.WebServices;
using System.Collections;
using System.Globalization;
using SAP.Admin.DAO;

namespace SAP
{
    public partial class AffiliatedClinic : System.Web.UI.Page
    {
        public static DataTable dtHeader;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                PrepareDatatable();
                lvAffiliatedClinic.DataSource = dtHeader;
                lvAffiliatedClinic.DataBind();
            }
        }

        protected void PrepareDatatable()
        {
            dtHeader = new DataTable("OCLG");
            dtHeader.Columns.Add("No");
            dtHeader.Columns.Add("AffiliatedClinic");
            dtHeader.Columns.Add("Date");
            dtHeader.Columns.Add("PatientICNo");
            dtHeader.Columns.Add("PatientName");
            dtHeader.Columns.Add("PatientAddress");
            dtHeader.Columns.Add("PatientContactNo");
            dtHeader.Columns.Add("Company");
            dtHeader.Columns.Add("Grade");
            dtHeader.Columns.Add("TotalCost");
            dtHeader.Columns.Add("TotalPrice");
            dtHeader.Rows.Add("1","","","","","","","","","","");
            dtHeader.Rows.Add("2", "", "", "", "", "", "", "", "", "", "");
            dtHeader.Rows.Add("3", "", "", "", "", "", "", "", "", "", "");
            dtHeader.Rows.Add("4", "", "", "", "", "", "", "", "", "", "");
            dtHeader.Rows.Add("5", "", "", "", "", "", "", "", "", "", "");
            dtHeader.Rows.Add("6", "", "", "", "", "", "", "", "", "", "");
            dtHeader.Rows.Add("7", "", "", "", "", "", "", "", "", "", "");
            dtHeader.Rows.Add("8", "", "", "", "", "", "", "", "", "", "");
            dtHeader.Rows.Add("9", "", "", "", "", "", "", "", "", "", "");
            dtHeader.Rows.Add("10", "", "", "", "", "", "", "", "", "", "");

            dtHeader.Rows.Add("11", "", "", "", "", "", "", "", "", "", "");
            dtHeader.Rows.Add("12", "", "", "", "", "", "", "", "", "", "");
            dtHeader.Rows.Add("13", "", "", "", "", "", "", "", "", "", "");
            dtHeader.Rows.Add("14", "", "", "", "", "", "", "", "", "", "");

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            
        }
     
    }
}